package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblBillResponsibleReason;

import java.util.List;
import java.util.Map;

/**
 * 损失原因/责任方/单据状态对应表 服务类
 * @author xiaochuan
 * @since 2020-06-11
 */

public interface ITblBillResponsibleReasonService extends IBaseService {

    /**
     * getBillNo
     * @param str
     * @return
     * @throws ServiceException
     */
    Integer getBillNo(String str) throws ServiceException;

    /**
     * getResponsibleReason
     * @param params
     * @return
     * @throws ServiceException
     */
    List<TblBillResponsibleReason> getResponsibleReason(Map<String, Object> params)throws ServiceException;

    /**
     * deleteByLossReasonNo
     * @param tblBillResponsibleReason
     * @throws ServiceException
     */
    void deleteByLossReasonNo(TblBillResponsibleReason tblBillResponsibleReason) throws ServiceException;

    /**
     * selectMainAndDtlByParam
     * @param params
     * @return
     * @throws ServiceException
     */
    List<TblBillResponsibleReason> selectMainAndDtlByParam(Map<String, Object> params)throws ServiceException;

    /**
     * 获取损失原因
     * @param params
     * @return
     * @throws ServiceException
     */
    List<TblBillResponsibleReason> getResponsibleReasonByParam(Map<String, Object> params)throws ServiceException;
}

